<?php
class capcha_view {
	var $base_url;
	function show($type = 'enter')
	{
?>	
	<div class='capcha'>
		<div>
			<div class='secimg_contr'>
				<a href="#"
					onclick="document.getElementById('secimg<?if($type == 'reg') echo 'Reg';?>').src = '<?=$this->base_url?>captcha/get_image/' + Math.random(); return false">
						Обновить</a>&nbsp;
				<a href="<?=$this->base_url?>captcha/get_audio">
							Аудио</a>
			</div>
			<img src="<?=$this->base_url?>captcha/get_image"
							id='secimg<?if($type == 'reg') echo 'Reg';?>' class='own' />
		</div>
		<div>
			<input type='text' name='user_input' id='user_input<?if($type == 'reg') echo 'Reg';?>' class='required<?
					if($type == 'enter') echo ' text ui-widget-content ui-corner-all';?>' size="20" minlength="2" />
		</div>
	</div>
<?php
	}

}
/* End of file header.php */
/* Location: ./system/application/views/inc/capcha.php */
?>
